package com.yf.cmw.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 下载日志表
 *  @date 2018-08-17 15:22
 *  @author  程明卫
 */
public class DownloadLogEntity  implements Serializable {
    //id
    private Long id;
    //业务类型 ： [1:广告文件,2:软件升级文件]
    private Integer btype;
    //文件名称
    private String fname;
    //本地存储路径
    private String lpath;
    //下载地址
    private String  surl;
    private String durl;
    //下载状态 [0:未下载,1:下载中,2:下载成功，3：下载失败]
    private Integer xstatus;
    //期刊ID
    private Long sourceId;
    //期刊状态[0:未上刊,1:上刊中,2：已上刊,3：已下架]
    private Integer sstatus;
    //期刊结束时间
    private String endTime;
    //创建时间
    private String createTime;
    //下载完成时间
    private String finishTime;
    //备注
    private String remark;

    //广告文件名
    private String sourceFileName;
    //从服务器端接收到数据的时间
    private Date receiveTime;
    //机器地址
    private String address;

    //期刊名称
    private String aname;
    //文件大小
    private Long fileSize = 0L;
    //文件MD5
    private String fileMd5;

    public String getFileMd5() {
        return fileMd5;
    }

    public void setFileMd5(String fileMd5) {
        this.fileMd5 = fileMd5;
    }

    public String getAname() {
        return aname;
    }

    public void setAname(String aname) {
        this.aname = aname;
    }

    public Long getFileSize() {
        return fileSize;
    }

    public void setFileSize(Long fileSize) {
        this.fileSize = fileSize;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Date getReceiveTime() {
        return receiveTime;
    }

    public void setReceiveTime(Date receiveTime) {
        this.receiveTime = receiveTime;
    }

    public String getSourceFileName() {
        return sourceFileName;
    }

    public void setSourceFileName(String sourceFileName) {
        this.sourceFileName = sourceFileName;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getBtype() {
        return btype;
    }

    public void setBtype(Integer btype) {
        this.btype = btype;
    }

    public String getFname() {
        return fname;
    }

    public void setFname(String fname) {
        this.fname = fname;
    }

    public String getLpath() {
        return lpath;
    }

    public void setLpath(String lpath) {
        this.lpath = lpath;
    }

    public String getDurl() {
        return durl;
    }

    public void setDurl(String durl) {
        this.durl = durl;
    }

    public Integer getXstatus() {
        return xstatus;
    }

    public void setXstatus(Integer xstatus) {
        this.xstatus = xstatus;
    }

    public Integer getSstatus() {
        return sstatus;
    }

    public void setSstatus(Integer sstatus) {
        this.sstatus = sstatus;
    }

    public Long getSourceId() {
        return sourceId;
    }

    public void setSourceId(Long sourceId) {
        this.sourceId = sourceId;
    }


    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getFinishTime() {
        return finishTime;
    }

    public void setFinishTime(String finishTime) {
        this.finishTime = finishTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }


    public String getSurl() {
        return surl;
    }

    public void setSurl(String surl) {
        this.surl = surl;
    }

    @Override
    public String toString() {
        return "DownloadLogEntity{" +
                "id=" + id +
                ", btype=" + btype +
                ", fname='" + fname + '\'' +
                ", lpath='" + lpath + '\'' +
                ", surl='" + surl + '\'' +
                ", durl='" + durl + '\'' +
                ", xstatus=" + xstatus +
                ", sourceId=" + sourceId +
                ", sstatus=" + sstatus +
                ", endTime='" + endTime + '\'' +
                ", createTime='" + createTime + '\'' +
                ", finishTime='" + finishTime + '\'' +
                ", remark='" + remark + '\'' +
                ", sourceFileName='" + sourceFileName + '\'' +
                ", receiveTime=" + receiveTime +
                ", address='" + address + '\'' +
                '}';
    }
}
